home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / applied / add_weight < prev    next >
Text File  |  2001-04-06  |  735b  |  21 lines

  1. SYNOPSIS
  2.         int add_weight(int w)
  3.  
  4. DESCRIPTION
  5.         In compat mode, this function is used by the efun transfer().
  6.  
  7.         An object that can contain other objects and is not a room
  8.         must define this function. It is called with the extra weight
  9.         of the object that is moved into it. If this is ok, then it
  10.         has to increment the local weight count, and return true.
  11.         Otherwise, return false, and the new object can not be entered
  12.         into this object.
  13.  
  14.         The function is also called with the negative weight in the
  15.         object that the moving leaves.
  16.         
  17.         Note that no set_weight() is required by the parser.
  18.  
  19. SEE ALSO
  20.         transfer(E), query_weight(A), prevent_insert(A)
  21.